package com.example.experiment4.service;


import com.example.experiment4.domain.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ReadImgGetDataAndSave {

    @Resource
    ReadImgGetData readImgGetData;

    @Resource
    PersonService service;

    public String getAndSaveData(String filePath){
        List<Person> personList = readImgGetData.personList(filePath);
       return service.saveData(personList);
    }
}
